<html>
<meta charset="utf-8"/>
<#include "../common/header.ftl">
<body>
<div id="wrapper" class="toggled">
<#--边栏-->
        <#include "../common/nav.ftl">
<#--内容-->
    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="row clearfix">
                <div class="col-md-4 column">
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th>订单id</th>
                            <th>订单总金额</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>${data.orderId}</td>
                            <td>${data.orderAmount}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>

            <#--订单详情表格数据-->
                <div class="col-md-12 column">
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th>商品id</th>
                            <th>商品名称</th>
                            <th>价格</th>
                            <th>数量</th>
                            <th>总额</th>
                        </tr>
                        </thead>
                        <tbody>
                <#if  data.getOrderDetailList()?? &&(data.getOrderDetailList()?size==0)>
                   <tr><td colspan="5" class="text-center"> 暂无数据</td></tr>
                </#if>
                       <#list data.getOrderDetailList() as item>
                       <tr>
                           <td>${item.productId}</td>
                           <td>${item.productName}</td>
                           <td>${item.productPrice}</td>
                           <td>${item.productQuantity}</td>
                           <td>${item.productQuantity * item.productPrice}</td>
                       </tr>
                       </#list>
                        </tbody>
                    </table>
                </div>
            </div>
    <#if data.orderStatusEnum.msg=="新订单">
        <a class="btn btn-primary" href="/sell/seller/order/finish?orderId=${data.orderId}">完结订单</a>
        <a class="btn btn-danger"  href="/sell/seller/order/cancel?orderId=${data.orderId}">取消订单</a>
    </#if>

        </div>
    </div>
</div>


</body>
</html>